package libnetdb.dm.assoc.util;

/**
 * An abstract adapter class for receiving Controller events. The methods in this
 * class are empty. This class exists as convenience for creating listener objects.
 * Create a listener object using the extended class and then register it with a
 * controller using the controller's <code>addListener</code> method. When the state
 * (stage, or progress) of the controlled task is changed, the relevant method in the
 * listener object is invoked.
 *
 * @see ProgressListener
 * @see ControllableTask
 * @author Cheng-Ru Lin
 * @version 1.0 2002/8
 */

public abstract class ProgressAdapter implements ProgressListener {

    public void taskPaused(ControllableTask who){
    }

    public void taskResumed(ControllableTask who){
    }

    public void stageChanged(ControllableTask who, String stage){
    }

    public void progressChanged(ControllableTask who, float progress){
    }

    public void stageProgressChanged(ControllableTask who, float progress){
    }

    public void messagePosted(ControllableTask who, String message){
    }
}
